home *** CD-ROM | disk | FTP | other *** search
- public class EffectDiscShapeOfTheBeast extends Codex {
- private static final int TIMER_ID_WOLF = 0;
- private int _shifterGuid;
-
- void EffectEnded() {
- CodexActor shifter = new CodexActor(this._shifterGuid);
- shifter.ActorEndShapeShift();
- ((CodexThing)shifter).SetShell("shellSprite_white", 20480, 0.0F, 2.0F, 1.0F, 1.0F);
- ((CodexThing)shifter).SetAlpha(0.0F);
- ((CodexThing)shifter).SetAlpha(1.0F, 2000.0F);
- shifter.StopActorAction();
- shifter.ClearActorFlags(4194312);
- shifter.RemoveActorEffect("ef_disc_shapeofthebeast2");
- shifter.RemoveActorEffect("ef_disc_shapeofthebeast3");
- }
-
- public void restore(int flags) {
- this._shifterGuid = CodexSequence.RestoreInt();
- }
-
- public void effectstarted(int actorGuid, int effectGuid, int creatorGuid, int duration) {
- this._shifterGuid = actorGuid;
- CodexActor shifter = new CodexActor(this._shifterGuid);
- ((Codex)this).CaptureThing(this._shifterGuid);
- ((CodexThing)shifter).SetAlpha(0.0F, 1500.0F);
- float len = (float)(((CodexThing)shifter).PlayMotionSetMode(168, false, 30.0F) / 1000);
- ((Codex)this).SetTimer(len, 0);
- shifter.SetActorFlags(4194312);
- }
-
- public void killed(int guid, int causeID, int captureID) {
- this.EffectEnded();
- }
-
- public void save(int flags) {
- CodexSequence.SaveInt(this._shifterGuid);
- }
-
- public void timer(int timerID, float arg0, float arg1, float arg2, float arg3) {
- switch (timerID) {
- case 0:
- CodexActor shifter = new CodexActor(this._shifterGuid);
- shifter.ActorShapeShift(shifter.GetActorClanShapeTemplate(), 0);
- ((CodexThing)shifter).SetAlpha(0.0F);
- ((CodexThing)shifter).SetAlpha(1.0F, 2000.0F);
- shifter.StopActorAction();
- default:
- }
- }
-
- public void effectended(int actorGuid, int effectGuid, int creatorGuid, int reason) {
- this.EffectEnded();
- }
- }
-